home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / C ++ / Frameworks / MacZoop 1.6.5 / Basic Classes / Z Headers / ZGrafState.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-07-14  |  671 b   |  41 lines  |  [TEXT/CWIE]

  1. /*************************************************************************************************
  2. *
  3. *
  4. *            ObjectMacZapp        -- a standard Mac OOP application template
  5. *
  6. *
  7. *
  8. *            ZGrafState.h        -- a simple object for saving and restoring grafport state
  9. *
  10. *
  11. *            © 1997, Graham Cox
  12. *
  13. *
  14. *
  15. *************************************************************************************************/
  16.  
  17. #pragma once
  18.  
  19. #ifndef __ZGRAFSTATE__
  20. #define    __ZGRAFSTATE__
  21.  
  22.  
  23. class    ZGrafState
  24. {
  25. protected:
  26.     GrafPtr        port;
  27.     RgnHandle    clip;
  28.     PenState    pen;
  29.     RGBColor    fore;
  30.     RGBColor    back;
  31.     short        font;
  32.     short        fSize;
  33.     Style        fStyle;
  34.     short        fMode;
  35.  
  36. public:
  37.     ZGrafState();
  38.     virtual ~ZGrafState();
  39. };
  40.  
  41. #endif